<?php use_helper('Object', 'Validation', 'ObjectAdmin', 'I18N', 'Date') ?>
<title><?= $sf_response->getTitle() ?></title>

<?php use_helper('DateForm') ?>

<?php use_stylesheet('/sf/sf_admin/css/main') ?>


<style type="text/css">
<!--
.style1 {
	font-size: 24px;
	font-weight: bold;
	color: #CC00CC;
}
.style2 {
	color: #0000FF;
	font-weight: bold;
}
-->
</style>

<div id="sf_admin_container">

<h1>Month-end Loop</h1>

<div id="sf_admin_content">
<?php echo form_tag('function/CalcBeginMonth', array(
  'id'        => 'sf_admin_edit_form',
  'name'      => 'sf_admin_edit_form',
  'multipart' => true,
)) ?>

<fieldset id="sf_fieldset_none" class="">
<? if (isset($finish) && $finish==1){?>
    Month-end Loop was executed successfully!!!
<?}
else {?>
Opening = Closing (month-end)<br/>
Total in = 0<br/>
Total out = 0<br/>
Closing (keep)
<?}?>
</fieldset>
    <input type ="hidden" name ="ok" id ="ok" value ="1">
    <?if (!isset($finish) ){?>
<ul class="sf_admin_actions">
  <li><?php echo submit_tag(__('Loop'), array (
  'name' => 'loop',
  'class' => 'sf_admin_action_save',
  'confirm' => __('Are you sure you want to Loop the Month-end process?')
)) ?></li>
</ul>
    <?}?>

</form>

</div>


</div>